/**
 * 
 */
package com.threedt.nova.portfolio.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author Vivek
 * 
 */
@Entity
@Table(name = "TB_USER")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.GUIDGenerator")
@NamedQueries( {
		@NamedQuery(name = "USER.findAllUser", query = "SELECT OBJECT(user) FROM User user"),
		@NamedQuery(name = "USER.findUserByUserName", query = "SELECT OBJECT(user) FROM User user where user.userName =:userName") })
public class User extends BaseEntity implements Serializable {

	private String userName;
	private String password;

	@Column(name = "USER_NAME")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "USER_PASSWORD")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
